package com.spring.shops.service;

import com.spring.shops.model.dto.CaptchaAuthenticationDTO;
import com.spring.shops.model.dto.PasswordDTO;
import com.spring.shops.model.dto.SysUserDTO;
import com.spring.shops.model.entity.TzSysUser;
import com.spring.shops.model.result.IPageIndexImg;
import com.spring.shops.model.result.ServerResponseEntityVoid;
import com.spring.shops.model.vo.SysUserVO;

import java.text.ParseException;
import java.util.List;

public interface AdminService {
    /**
     * 用户登录校验
     * @param authenticationDTO
     * @return
     */
    ServerResponseEntityVoid login(CaptchaAuthenticationDTO authenticationDTO);
    /**
     * 添加用户
     * @param tzSysUser
     * @return
     */
    String add(TzSysUser tzSysUser);
    /**
     * 分页查询
     * @param dto
     * @return
     */
    ServerResponseEntityVoid<IPageIndexImg<SysUserVO>> page(SysUserDTO dto);
    /**
     * 新增用户
     * @param dto
     * @return
     */
    ServerResponseEntityVoid save( SysUserDTO dto);
    /**
     * 根据用户ids删除数据
     * @param integers
     * @return
     */
    ServerResponseEntityVoid deleteByIds(List<Long> integers);
    /**
     * 根据用户id获取信息
     * @param userId
     * @return
     */
    ServerResponseEntityVoid<SysUserVO> getInfoById(Long userId);
    /**
     * 更新用户信息
     * @param dto
     * @return
     */
    ServerResponseEntityVoid update(SysUserDTO dto);
    /**
     * 修改用户密码
     * @param dto
     */
    ServerResponseEntityVoid password(PasswordDTO dto);
}
